extends "../laibixi-3/laibixi-3.gd"


var baseId = ""
var upText1 = "安全第一100%触发活力效果"
var upText2 = "安全第一100%触发驱散效果"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("<固化><唯一>每12秒提高全体友军5%血上限并恢复5%血量", "防御指挥")

var index = 0
func _upS():
	index += 1
	if index >= 12:
		index = 0
		for i in getAllChas(2):
			var bf = i.hasBuff("b_laibixi4")
			if bf == null:
				i.addBuff(b_laibixi4.new())
			else:
				bf.att.maxHpL += 0.05

			i.healCha(i, i.att.maxHp*0.05)

			
func _onBattleEnd():
	._onBattleEnd()		
	index = 0

class b_laibixi4:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		buffName = "防御指挥"
		id = "b_laibixi4"	
		att.maxHpL = 0.05